import { createRouter, createWebHistory } from 'vue-router'
import Login from '../components/Login.vue'
import App from '../App.vue'

const routes = [
  {
    path: '/',
    redirect: '/launcher'
  },
  {
    path: '/launcher',
    name: 'Login',
    component: Login
  },
  {
    path: '/plc',
    name: 'PLC',
    component: App
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router